/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export const DEFAULT_INDEX = 0;
export const DEFAULT_ANIMATE_ON_MOUNT = true;
export const DEFAULT_WIDTH = '576';
export const DEFAULT_HEIGHT = '768';
export const DEFAULT_MAX_WIDTH = 600;
export const DEFAULT_VERTICAL_MARGIN = 40;
export const DEFAULT_SHOW_HEADER = true;
export const DEFAULT_SHOW_CLOSE_BUTTON = true;
export const DEFAULT_BACKDROP_OPACITY = 0.64;
export const DEFAULT_BACKDROP_COLOR = 'rgba(0, 0, 0, 0.64)';
export const DEFAULT_ENABLE_BACKDROP_DISMISS = false;
export const DEFAULT_ANIMATION_DURATION = 250;
export const DEFAULT_CLOSE_BUTTON_COLOR = '#0F294D';
export const DEFAULT_TOP_INSET = 0;
export const DEFAULT_BOTTOM_INSET = 0;
export const DEFAULT_BUTTON_POSITION = 'right';

export const ANIMATION_OPACITY_FROM = 0;
export const ANIMATION_OPACITY_TO = 1;

export const DEFAULT_FADE_ANIMATION_CONFIG = {
  duration: 250, 
};

export const OPTIONAL_SPRING_CONFIG = {
  damping: 20,
  stiffness: 300,
  mass: 0.5,
  overshootClamping: false,
  restDisplacementThreshold: 0.01,
  restSpeedThreshold: 0.01,
};

export const DEFAULT_HEADER_HEIGHT = 56;
export const DEFAULT_CLOSE_BUTTON_SIZE = 48;
export const DEFAULT_CLOSE_ICON_SIZE = 24;

export const CENTER_SHEET_STATE = {
  CLOSED: -1,
  OPENED: 0,
} as const;
